<template>
  <div>
    {{ time | formatT }}
    <Hmcalendar v-model="time"></Hmcalendar>
  </div>
</template>

<script>
import Hmcalendar from './components/hm-calendar.vue'
import dayjs from 'dayjs'
export default {
  components: {
    Hmcalendar
  },
  data () {
    return {
      time: new Date('2020-10-10')
    }
  },
  filters: {
    formatT (t) {
      return dayjs(t).format('YYYY-MM-DD')
    }
  }
}
</script>

<style></style>
